package org.mymail.mail;


public class MailFwdType
{

    public MailFwdType()
    {
    }

    public static String getStringForm(int mailFwdType)
    {
        String strValue = "";
        switch(mailFwdType)
        {
        case 1: // '\001'
            strValue = "Calvin and Hobbes";
            break;

        case 2: // '\002'
            strValue = "Dilbert Classics";
            break;
        }
        return strValue;
    }

    public static int getIntFromString(String service)
    {
        if(service.equalsIgnoreCase("Calvin and Hobbes"))
            return 1;
        return !service.equalsIgnoreCase("Dilbert Classics") ? -1 : 2;
    }

    public static final int CALVIN_HOBBES = 1;
    public static final int DILBERT_CLASSICS = 2;
}